﻿myApp.controller("LogisticsCtrl", ['$scope', '$http', '$routeParams', '$restUrls', '$post', '$rootScope', function ($scope, $http, $routeParams, $restUrls, $post, $rootScope) {
    var order_id = $routeParams.id;
    $http({ method: "GET", url: $restUrls["getLogisticsByApi"], params: { order_id: order_id } }).success(function (result) {
        var result = JSON.parse(result);
        if (result.status == 0) {
            $scope.company = logistics_companys.result[result.result.type.toLowerCase()];
            $scope.number = result.result.number;
            $scope.logistics = result.result.list;
        } else {

        }
    })
    ShareOnWx("『新品上市』", "零食4.0——川西新派冷吃兔 私厨珍藏配方160g","http://haichi.cc/www/index.html#/product/50", "http://haichi.cc/www/img/cp1.jpg");
}]);